]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView.js: Fix dropping window on +
authorMaxim Ermilov <zaspire@rambler.ru>
Mon, 22 Mar 2010 20:41:26 +0000 (23:41 +0300)
committerMaxim Ermilov <zaspire@rambler.ru>
Mon, 22 Mar 2010 20:46:24 +0000 (23:46 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=610191

js/ui/overview.js
js/ui/workspacesView.js

index 3a5278ac1a73b8bf892f42a16b3ea7a1968d8209..92f377a7932074564612f14c8c685e6a8881e0e8 100644 (file)
@@ -262,6 +262,7 @@ Overview.prototype = {
 
         // Show new workspacesView
         this._group.add_actor(this._workspaces.actor);
+        this._workspacesBar.raise(this._workspaces.actor);
         this._dash.actor.raise(this._workspaces.actor);
     },
 
index 6e301615525a27ad928c98519b43141209271430..9b45fbaee129626fcd640dc2632d4bfc76034b8b 100644 (file)
@@ -259,6 +259,11 @@ GenericWorkspacesView.prototype = {
 
     _activeWorkspaceChanged: function() {
         throw new Error("Not implemented");
+    },
+
+    _acceptNewWorkspaceDrop: function(source, dropActor, x, y, time) {
+        this.addWorkspace();
+        return this.acceptNewWorkspaceDrop(source, dropActor, x, y, time);
     }
 };
 
@@ -453,11 +458,6 @@ MosaicView.prototype = {
         let metaWorkspace = this._workspaces[removedIndex].metaWorkspace;
         global.screen.remove_workspace(metaWorkspace,
                                        global.get_current_time());
-    },
-
-    _acceptNewWorkspaceDrop: function(source, dropActor, x, y, time) {
-        this._addNewWorkspace();
-        return this.acceptNewWorkspaceDrop(source, dropActor, x, y, time);
     }
 };
 
@@ -1306,11 +1306,6 @@ SingleView.prototype = {
         let metaWorkspace = this._workspaces[removedIndex].metaWorkspace;
         global.screen.remove_workspace(metaWorkspace,
                                        global.get_current_time());
-    },
-
-    _acceptNewWorkspaceDrop: function(source, dropActor, x, y, time) {
-        this.addWorkspace();
-        return this.acceptNewWorkspaceDrop(source, dropActor, x, y, time);
     }
 };